<!--添加指令-->

<div class="demo-modal editstaff">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			编辑员工
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body" id="gathering-body">
		<div class="item-editstaff">
		      <div class="item-head">
		      	部门职位
		      </div>
		      <div class="item-content">
		      	<span class="line-block">
			        <ui-select ng-model="param1.admin.did" append-to-body = "true">
			        	<ui-option value="-1">选择部门</ui-option>
			        	<ui-option ng-repeat="(i,item) in param1.deptList track by $index " 
			        		value="item.id" >
			            	{{item.name}}
			           </ui-option>
			        </ui-select>
			    </span>
			    <!--<span class="line-block">
			        <ui-select ng-model="param2.positionId">
			        	<ui-option value="-1">选择子部门</ui-option>
			            <ui-option ng-repeat="(i,item) in param1.positionList track by $index " 
			            	value="item.id" >
			            	{{item.name}}
			            </ui-option>
			        </ui-select>
			    </span>-->
			    <span class="line-block">
			        <ui-select ng-model="param1.admin.position_id" append-to-body = "true">
			        	<ui-option value="-1">选择职位</ui-option>
			            <ui-option ng-repeat="(i,item) in param1.positionList track by $index " 
			            	value="item.id" >
			            	{{item.name}}
			            </ui-option>
			        </ui-select>
			    </span>
		      </div>
	    </div>
	    <div class="item-editstaff">
		      <div class="item-head">
		      	所属管理组
		      </div>
		      <div class="item-content">
		      	<span class="line-block">
			        <ui-select ng-model="param1.roleid" append-to-body = "true">
			        	<ui-option value="-2">选择管理组</ui-option>
			        	<ui-option ng-repeat="(i,item) in param1.roles track by $index " 
			        		value="item.id" >
			            	{{item.roleName}}
			           </ui-option>
			        </ui-select>
			    </span>
		      </div>
	    </div>
	    <div class="item-editstaff">
		      <div class="item-head">
		      	用户名
		      </div>
		      <div class="item-content">
		      	<span class="line-block" style="width: 220px;">
			        <input type="text" class="form-control" 
			        	readonly="readonly"
			        	ng-model="param1.admin.username" />
			    </span>
		      </div>
	    </div>
	    <div class="item-editstaff">
		      <div class="item-head">
		      	真实姓名
		      </div>
		      <div class="item-content">
		      	<span class="line-block" style="width: 220px;">
			        <input type="text" class="form-control" 
			        	placeholder="输入姓名" 
			        	ng-model="param1.admin.realName" />
			    </span>
			   	 最长10个字
		      </div>
	    </div>
	    <div class="item-editstaff">
		      <div class="item-head">
		      	手机号
		      </div>
		      <div class="item-content">
		      	<span class="line-block" style="width: 220px;">
			        <input type="text" class="form-control"
			        	 placeholder="输入手机号码" 
			        	 ng-model="param1.admin.telephone" />
			    </span>
		      </div>
	    </div>
	    <div class="item-editstaff">
		      <div class="item-head">
		      	邮箱
		      </div>
		      <div class="item-content">
		      	<span class="line-block" style="width: 220px;">
			        <input type="text" class="form-control"
			        	 placeholder="输入邮箱" 
			        	 ng-model="param1.admin.mail" />
			    </span>
		      </div>
	    </div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" type="button" ng-click="tiJiao1()">确定提交</button>
	</div>
</div>